//
//  TodoService.h
//  DoIT
//
//  Created by 葛欣 on 14/11/22.
//  Copyright (c) 2014年 gex. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "AppConfig.h"
@class Todo;

@interface TodoService : NSObject
singleton_interface(TodoService)
/**
 *  添加
 *
 */
-(void)addTodo:(Todo *)todo;
/**
 *  删除
 */
-(void)removeTodo:(Todo *)todo;
/**
 *  修改
 *
 */
-(void)modifyTodo:(Todo *)todo;
/**
 *  根据编号取得
 */
-(Todo *)getTodoById:(int)Id;
/**
 *  取得所有todo
 *
 */
-(NSArray *)getAllTodoByStatus:(TodoStatus)status;
/**
 *按状态时间获取
 */
-(NSArray *)getAllTodoByStatus:(TodoStatus)status date:(NSDate *)date;
@end
